@(id: Long, prodForm: Form[models.Produit], ficheForm: Form[models.Fiche], fiche: Fiche)

@import helper._

@implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapInput.render) } 


@main("Todo list") { 

<header class="topbar">
        <h1 class="fill" align="center">
            <a href="@routes.Application.index()">
				Plateforme de gestion de catalogue de produits
            </a>
        </h1>
    </header>
    
    @if(flash.containsKey("success")) {
        <div align="center" class="alert-message success">
            <strong>Done!</strong> @flash.get("success")
        </div>
    }else{
	    @if(flash.containsKey("error")){
	    	<div align="center" class="alert-message error">
	            <strong>Done!</strong> @flash.get("error")
	        </div>
	    } 
    }
   
    
    
    
      @form(routes.Fiches.add(fiche.id)) {
    <table style="border:0; cellpadding:0; cellspacing:0; rules:none">

			  <tr><h2 style="padding:15px">@fiche.label</h2></tr>
				
				  <tr>
		    		<th style=" border:0; cellpadding:0; cellspacing:0; rules:none">Product name : @fiche.label</th>
		    	  </tr>
		    	  <tr>
		    		<th style=" border:0; cellpadding:0; cellspacing:0; rules:none">Type : @fiche.typeProd</th>
		    	  </tr>
		    	   <tr>
		    		<th style=" border:0; cellpadding:0; cellspacing:0; rules:none">Price : @fiche.prix</th>
		    	  </tr>
		    	  <tr>
		    		<th style=" border:0; cellpadding:0; cellspacing:0; rules:none">Features : @fiche.lCaracteristique</th>
		    	  </tr>
		    		
		    	
		    		
				    <th style="border:0; cellpadding:0; cellspacing:0; rules:none"><input class="btn small" type="submit" value="Add this product to shopping cart"></th>
				    <th style="border:0; cellpadding:0; cellspacing:0; rules:none">
				    <a class="btn small" href="@routes.Produits.produits(id)" style="text-decoration:none">List of products</a></th>				    
			      }
			  </tr>
	</table>  
}